//
//  BiUtil.h
//  XinBanEducation
//
//  Created by ChenBin on 14-5-3.
//  Copyright (c) 2014年 Nahan Cop. All rights reserved.
//

@interface BiUtil : NSObject
+ (NSString *)getSendTmpFileName:(NSDictionary *)dic;
+ (CGSize)calcTextSize:(NSString*)text textFont:(UIFont*)textFont width:(int)width;
+ (BOOL)isBlankString:(NSString*)str;

+ (NSString *)getDownloadImageUrl:(NSString*)imageSuffix;
+ (NSString *)getRandImageFileName;

+ (BOOL)isConnectToNetwork;

+ (NSString*)tempImageFilePath;

/**
 *  date 格式化为string
 *
 *  @param date    待转化的时间
 *  @param formate 转化格式
 *
 *  @return 转化后的字符串
 */
+ (NSString*) stringFromFomate:(NSDate*)date formate:(NSString*)formate;

/**
 *  string 格式化为 date
 *
 *  @param datestring 需要转化的字符串
 *  @param formate    时间格式
 *
 *  @return 转化后的时间
 */
+ (NSDate *) dateFromFomate:(NSString *)datestring formate:(NSString*)formate;

+ (void)pusuToImageVc:(UIViewController *)viewCtrl image:(UIImage *)image title:(NSString *)titleStr;

+ (UIImage *)scaleToSize:(UIImage *)img size:(CGSize)size;
@end
